﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DsFieldRead" targetNamespace="http://tempuri.org/DsFieldRead.xsd" xmlns:mstns="http://tempuri.org/DsFieldRead.xsd" xmlns="http://tempuri.org/DsFieldRead.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FieldSQLConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="FieldSQLConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FieldDevice.Properties.Settings.GlobalReference.Default.FieldSQLConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FieldReadsTableAdapter" GeneratorDataComponentClassName="FieldReadsTableAdapter" Name="FieldReads" UserDataComponentName="FieldReadsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FieldSQLConnectionString (Settings)" DbObjectName="FieldSQL.dbo.FieldReads" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[FieldReads] ([DeviceId], [ReadName], [ReadValue], [ReadTime]) VALUES (@DeviceId, @ReadName, @ReadValue, @ReadTime)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DeviceId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DeviceId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@ReadName" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ReadName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ReadValue" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ReadValue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ReadTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ReadTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT DeviceId, ReadName, ReadValue, ReadTime FROM dbo.FieldReads</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="DeviceId" DataSetColumn="DeviceId" />
              <Mapping SourceColumn="ReadName" DataSetColumn="ReadName" />
              <Mapping SourceColumn="ReadValue" DataSetColumn="ReadValue" />
              <Mapping SourceColumn="ReadTime" DataSetColumn="ReadTime" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DsFieldRead" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DsFieldRead" msprop:Generator_UserDSName="DsFieldRead">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="FieldReads" msprop:Generator_TableClassName="FieldReadsDataTable" msprop:Generator_TableVarName="tableFieldReads" msprop:Generator_TablePropName="FieldReads" msprop:Generator_RowDeletingName="FieldReadsRowDeleting" msprop:Generator_UserTableName="FieldReads" msprop:Generator_RowChangingName="FieldReadsRowChanging" msprop:Generator_RowEvHandlerName="FieldReadsRowChangeEventHandler" msprop:Generator_RowDeletedName="FieldReadsRowDeleted" msprop:Generator_RowEvArgName="FieldReadsRowChangeEvent" msprop:Generator_RowChangedName="FieldReadsRowChanged" msprop:Generator_RowClassName="FieldReadsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DeviceId" msprop:Generator_ColumnVarNameInTable="columnDeviceId" msprop:Generator_ColumnPropNameInRow="DeviceId" msprop:Generator_ColumnPropNameInTable="DeviceIdColumn" msprop:Generator_UserColumnName="DeviceId" type="xs:int" />
              <xs:element name="ReadName" msprop:Generator_ColumnVarNameInTable="columnReadName" msprop:Generator_ColumnPropNameInRow="ReadName" msprop:Generator_ColumnPropNameInTable="ReadNameColumn" msprop:Generator_UserColumnName="ReadName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ReadValue" msprop:Generator_ColumnVarNameInTable="columnReadValue" msprop:Generator_ColumnPropNameInRow="ReadValue" msprop:Generator_ColumnPropNameInTable="ReadValueColumn" msprop:Generator_UserColumnName="ReadValue" type="xs:double" />
              <xs:element name="ReadTime" msprop:Generator_ColumnVarNameInTable="columnReadTime" msprop:Generator_ColumnPropNameInRow="ReadTime" msprop:Generator_ColumnPropNameInTable="ReadTimeColumn" msprop:Generator_UserColumnName="ReadTime" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>